package org.friping.mytool.views.picker;


import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;

import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.Extra;
import org.androidannotations.annotations.OptionsItem;
import org.androidannotations.annotations.ViewById;

import java.io.Serializable;

@EActivity
public abstract class PickerActivity extends AppCompatActivity {
    @ViewById
    Toolbar toolbar;

    @Extra
    String name;

    @Extra
    String title;

    @Extra
    String label;

    @Extra
    Serializable value;

    @OptionsItem(android.R.id.home)
    public void optionsItems(MenuItem item) {
        finish();
    }

    protected abstract void save();


}
